package com.bjpowernode.dataservice.service;

import com.bjpowernode.commons.service.RechargeService;
import com.bjpowernode.dataservice.mapper.RechargeMapper;
import com.bjpowernode.commons.model.Recharge;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService
public class RechargeServiceImpl implements RechargeService {
    @Resource
    private RechargeMapper rechargeMapper;

    public void add(Recharge recharge) {
        rechargeMapper.add(recharge);
    }

    public void updateStatus(String orderId, int status, String channel) {
        rechargeMapper.updateStatus(orderId, status, channel);
    }
}
